package WinterFlower.work0714;

import java.util.Arrays;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-14 17:21:36
 */
public class UseSystem {
    public static void main(String[] args) {
    //        复制数组
    int [] src = {1,2,3,4,5,6,7};
    int [] dest = new int[5];

        System.arraycopy(src,1,dest,1,3);
        System.out.println(Arrays.toString(dest));//[0 2 3 4 0]

//
//        Scanner sc = new Scanner(System.in);
//        while(true){
//            System.out.println("输入暗号：");
//            String password = sc.next();// nextline()
//
//            if("bye".equals(password)){
//                System.exit(0);// web 阶段 程序的运行 不依赖main 而是需要服务器软件
//            }
//            System.out.println("暗号不正确！你还有机会去输入");
//        }

        System.out.println(System.getProperty("os.version"));
        System.out.println(System.getProperty("os.name"));
        System.out.println(System.getenv("JAVA_HOME"));


    String name = "A";
    long t1 = System.currentTimeMillis();
        for (int i = 1; i <=100000 ; i++) {//19000ms 左右
        name+=i;
    }
    long t2 = System.currentTimeMillis();
        System.out.println("循坏耗时："+(t2-t1)+"ms");
}
}
